package 工厂模式.简单工厂.service.impl;

import 工厂模式.简单工厂.entity.AwardInfo;
import 工厂模式.简单工厂.entity.ResponseResult;
import 工厂模式.简单工厂.service.IFreeGoods;

/**
 * 模拟打折券服务
 */
public class DiscountFreeGoods implements IFreeGoods {
    @Override
    public ResponseResult sendFreeGoods(AwardInfo awardInfo) {
        System.out.println("像用户发一张打折券："+awardInfo.getUid()+","+awardInfo.getAwardNumber());
        return new ResponseResult("200","打折券发放成功",null);
    }
}
